Pelago\Emogrifier D

Total Complexity 205
Dependencies 8
Dependents 0
Total lines 1,866
Lines of code 725
Logical lines of code 425
Comment lines 866
Methods 80
Properties 16

Methods 80

Method Rating Maintainability Complexity Lines of code
process()
A
47 8 37
parseCssRules()
A
47 8 34
parseNth()
A
49 8 29
generateStyleStringFromDeclarationsArrays()
S
51 7 25
mapComplexCssProperty()
S
57 6 18
splitCssAndMediaQuery()
S
48 5 33
handleXpathQueryWarnings()
S
56 6 17
removeUnprocessableTags()
S
60 6 14
mapSimpleCssProperty()
S
59 6 13
copyUninlineableCssToStyleNode()
S
54 5 20
getNodesToExclude()
S
57 5 17
removeInvisibleNodes()
S
62 5 11
parseCssDeclarationsBlock()
S
56 4 18
getCssSelectorPrecedence()
S
56 4 16
addContentTypeMetaTag()
S
57 4 16
existsMatchForCssSelector()
S
62 4 11
translateCssToXpath()
S
54 3 20
mapBorderProperty()
S
66 4 8
getCssRuleMatches()
S
58 3 15
parseCssShorthandValue()
S
63 4 9
sortBySelectorPrecedence()
S
66 4 7
mapMarginProperty()
S
64 4 9
removeImportantAnnotationFromNodeInlineStyle()
S
59 3 14
translateNthChild()
S
59 3 14
translateNthOfType()
S
59 3 14
getCssFromAllStyleNodes()
S
62 3 12
postProcess()
S
69 3 8
mapBackgroundProperty()
S
67 3 7
setHtml()
S
65 3 9
normalizeStyleAttributesOfAllNodes()
S
67 3 8
normalizeStyleAttributes()
S
62 2 11
removeExcludedSelector()
S
73 2 5
__construct()
S
71 2 6
ensureExistenceOfBodyElement()
S
68 2 7
fillStyleAttributesWithMergedStyles()
S
67 2 7
copyInlineableCssToStyleAttribute()
S
65 2 9
ensureDocumentType()
S
68 2 7
matchIdAttributes()
S
76 2 3
matchClassAttributes()
S
76 2 3
removeAllowedMediaType()
S
73 2 5
removeUnprocessableHtmlTag()
S
70 2 6
mapAllInlineStylesToHtmlAttributes()
S
70 2 6
isTableOrImageNode()
S
79 2 3
removeImportantAnnotationFromAllInlineStyles()
S
74 2 5
mapCssToHtmlAttributes()
S
69 2 6
mapCssToHtmlAttribute()
S
72 2 5
mapWidthOrHeightProperty()
S
69 2 6
assertExistenceOfHtml()
S
72 2 5
translateCssToXpathPassWithMatchClassAttributesCallback()
S
59 1 14
getBodyElement()
S
80 1 3
matchClassAttributesInline()
S
76 1 3
getHeadElement()
S
80 1 3
createUnifiedDomDocument()
S
77 1 4
removeSelfClosingTagsClosingTags()
S
77 1 3
renderBodyContent()
S
71 1 5
render()
S
76 1 4
setCss()
S
81 1 3
translateCssToXpathPassInline()
S
78 1 3
translateCssToXpathPass()
S
78 1 3
getDomDocument()
S
82 1 3
emogrifyBodyContent()
S
74 1 5
emogrify()
S
74 1 5
addAllowedMediaType()
S
80 1 3
ensurePhpUnrecognizedSelfClosingTagsAreXml()
S
77 1 3
disableInlineStyleAttributesParsing()
S
81 1 3
addExcludedSelector()
S
80 1 3
purgeVisitedNodes()
S
77 1 4
clearAllCaches()
S
68 1 9
enableCssToHtmlMapping()
S
81 1 3
disableInvisibleNodeRemoval()
S
81 1 3
disableStyleBlocksParsing()
S
81 1 3
generateStyleStringFromSingleDeclarationsArray()
S
79 1 3
createRawDomDocument()
S
64 1 10
attributeValueIsImportant()
S
77 1 3
removeUnmatchablePseudoComponents()
S
73 1 4
addStyleElementToDocument()
S
66 1 8
getAllNodesWithStyleAttribute()
S
80 1 3
addUnprocessableHtmlTag()
S
80 1 3
prepareHtmlForDomConversion()
S
73 1 5
setDebug()
S
81 1 3